package com.bling.util.web;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
/**
 * Session监听器
 * @author BLingSoft
 *
 */
public class SessionListener implements HttpSessionListener{

	public void sessionCreated(HttpSessionEvent event) {
		SessionContext.addSession(event.getSession());
	}

	public void sessionDestroyed(HttpSessionEvent event) {
		SessionContext.removeSession(event.getSession().getId());
	}
}
